#ifndef PageSpinBox_H
#define PageSpinBox_H
//**************************************************************************************************************
// Filename: pagespinbox.cpp
// head file for pagespinbox class
// data March 2012
//***************************************************************************************************************

#include <QSpinBox>
#include <QKeyEvent>
#include <QWheelEvent>
#include <QMouseEvent>

class PageSpinBox: public QSpinBox
{
    Q_OBJECT

public:
    PageSpinBox(QWidget *parent = 0);

  protected:

    // reverse pageSpinbox's key press  event
    // up key decrease number and down key increase number 
    void keyPressEvent(QKeyEvent *e);

    // reverse pageSpinbox's wheel event
    void wheelEvent ( QWheelEvent * e);

    // ignore page mouse move event
    void mouseMoveEvent (QMouseEvent *e);

};


#endif

